package data {
	
	/**
	 * @author Brent Kersanske
	 */ 
	public class DemographicResult {
		
		private var _emailAddress:String;
		
		private var _ageRange:String;
		
		private var _industry:String;
		
		public function DemographicResult(emailAddress:String, ageRange:String, industry:String) {
			_emailAddress = emailAddress;
			_ageRange     = ageRange;
			_industry     = industry;
		}

		public function getResultsAsHTMLTable():String {
			return "<table border=\"1\">\n"   +
				   "<tr>\n" 			      +
				   "<th>Email Address</th>\n" +
				   "<th>Age Range</th>\n"	  + 
				   "<th>Industry</th>\n"	  +
				   "</tr>\n"				  + 
				   "<tr>\n"					  + 
				   "<td>" + _emailAddress + "</td>\n" +
				   "<td>" + _ageRange     + "</td>\n" +
				   "<td>" + _industry     + "</td>\n" +
				   "</tr>\n"				  +
				   "</table>\n"; 
		}
	}
}